package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.A_ZDDao;
import com.zhongchaowuye.pojo.A_ZD;
import com.zhongchaowuye.service.A_ZDService;

@Transactional
@Service("a_ZDService")
public class A_ZDServiceImpl implements A_ZDService
{
	@Resource
	A_ZDDao a_ZDDao;
	
	@Override
	public int insertA_ZD(A_ZD a_ZD) {
		// TODO Auto-generated method stub
		return a_ZDDao.insertA_ZD(a_ZD);
	}

	@Override
	public int updateA_ZD(A_ZD a_ZD) {
		// TODO Auto-generated method stub
		return a_ZDDao.updateA_ZD(a_ZD);
	}

	@Override
	public int delA_ZD(A_ZD a_ZD) {
		// TODO Auto-generated method stub
		return a_ZDDao.delA_ZD(a_ZD);
	}
	
	@Override
	public A_ZD getA_ZD(A_ZD a_ZD) {
		// TODO Auto-generated method stub
		return a_ZDDao.getA_ZD(a_ZD);
	}
	
	@Override
	public List<Map<String, Object>> getA_ZDList(A_ZD a_ZD) {
		// TODO Auto-generated method stub
		//PageHelper.startPage(a_ZD.getPageIndex(),a_ZD.getPageSize(),true);
		return a_ZDDao.getA_ZDList(a_ZD);
	}
}
